05. Binomial Distributions Quiz

Binomial Distributions Quiz

In this quiz, you will simulate coin flips using np.random.binomial to compute proportions for the following outcomes.

  1. A fair coin flip produces heads
  2. Five fair coin flips produce exactly one head
  3. Ten fair coin flips produce exactly four heads
  4. Five biased coin flips with P(H) = 0.8 produce exactly five heads
  5. Ten biased coin flips with P(H) = 0.15 produce at least three heads

Then, you'll compare these proportions with probabilities in the quizzes below.

Workspace

This section contains either a workspace (it can be a Jupyter Notebook workspace or an online code editor work space, etc.) and it cannot be automatically downloaded to be generated here. Please access the classroom with your account and manually download the workspace to your local machine. Note that for some courses, Udacity upload the workspace files onto https://github.com/udacity , so you may be able to download them there.

Workspace Information:

  • Default file path:
  • Workspace type: jupyter
  • Opened files (when workspace is loaded): n/a

QUIZ QUESTION: :

Use the proportions you observed in your simulation data above to state the probability of each of the following outcomes.

ANSWER CHOICES:



Outcome

Probability

0.180

0.5

0.205

1

0.45

0.130

0.2

0.156

0.328

0

SOLUTION:

Outcome

Probability

0.180

0.5

0.205

0.156

0.328

Compute the probabilities of each of the five outcomes above mathematically. Do these match with the proportions you found in your simulated data?

SOLUTION: Yes